; PureBasic Visual Designer v3.95 build 1485 (PB4Code)


;- Window Constants
;
Enumeration
  #Window_0
EndEnumeration

;- MenuBar Constants
;
Enumeration
  #MenuBar_0
EndEnumeration

Enumeration
  #MENU_3
  #MENU_5
EndEnumeration

;- Gadget Constants
;
Enumeration
  #MainPanel
  #Save
  #OptionsPanel
  #ScreenSize
  #VSync
  #Fullscreen
  #MSAA
  #MSAAText
  #Hertz
  #HzText
  #DeferredShading
  #DeferredMSAA
  #DeferredMSAALevel
  #SceneDeferredMSAAText
  #OpenGLMode
  #OpenGLModeText
  #OpenGLForward
  #OpenGLGLSLVersion
  #OpenGLGLSLText
  #OpenGLVbo
  #OpenGLVsync
  #OpenGLDrawRange
  #OpenGLMultitextures
  #OpenGLS3tc
  #OpenGLFbo
  #OpenGLGlsl
  #OpenGLSupportExtText
  #OpenGLAatextures
  #ScreenDepth
  #DepthText
  #ResolutionText
EndEnumeration

;- StatusBar Constants
;
Enumeration
  #StatusBar_0
EndEnumeration



Procedure Open_Window_0()
  If OpenWindow(#Window_0, 310, 60, 526, 327, "jEngine Config",  #PB_Window_SystemMenu | #PB_Window_TitleBar )
    If CreateMenu(#MenuBar_0, WindowID(#Window_0))
      MenuTitle("File")
      MenuItem(#MENU_3, "Exit")
      MenuTitle("Help")
      MenuItem(#MENU_5, "About")
      EndIf

      If CreateStatusBar(#StatusBar_0, WindowID(#Window_0))
        EndIf

        If CreateGadgetList(WindowID(#Window_0))
          
          ;- Panel
          PanelGadget(#MainPanel, 0, 0, 530, 290)
          AddGadgetItem(#MainPanel, -1, "Configuration")
          ButtonGadget(#Save, 8, 228, 70, 30, "Save")
          
          ;- OptionsPanel
          PanelGadget(#OptionsPanel, 8, 8, 510, 210)
          AddGadgetItem(#OptionsPanel, -1, "Main")
          ComboBoxGadget(#ScreenSize, 8, 18, 80, 20)
          CheckBoxGadget(#VSync, 168, 48, 50, 20, "VSync")
          CheckBoxGadget(#Fullscreen, 168, 18, 70, 20, "Fullscreen")
          ComboBoxGadget(#MSAA, 8, 108, 80, 20)
          TextGadget(#MSAAText, 98, 108, 40, 20, "MSAA")
          ComboBoxGadget(#Hertz, 8, 78, 80, 20)
          TextGadget(#HzText, 98, 78, 20, 20, "Hz")
          ComboBoxGadget(#ScreenDepth, 8, 48, 80, 20)
          TextGadget(#DepthText, 98, 48, 40, 20, "Depth")
          TextGadget(#ResolutionText, 98, 18, 60, 20, "Resolution")
          AddGadgetItem(#OptionsPanel, -1, "Scene")
          CheckBoxGadget(#DeferredShading, 8, 8, 110, 20, "Deferred Shading")
          CheckBoxGadget(#DeferredMSAA, 8, 38, 100, 20, "DS MSAA")
          ComboBoxGadget(#DeferredMSAALevel, 8, 68, 80, 20)
          TextGadget(#SceneDeferredMSAAText, 98, 68, 80, 20, "DS MSAA Level")
          AddGadgetItem(#OptionsPanel, -1, "OpenGL")
          ComboBoxGadget(#OpenGLMode, 8, 8, 50, 20)
          TextGadget(#OpenGLModeText, 68, 8, 90, 20, "OpenGL Version")
          CheckBoxGadget(#OpenGLForward, 8, 68, 100, 20, "Forward Context")
          ComboBoxGadget(#OpenGLGLSLVersion, 8, 38, 50, 20)
          TextGadget(#OpenGLGLSLText, 68, 38, 70, 20, "GLSL Version")
          CheckBoxGadget(#OpenGLVbo, 338, 8, 40, 20, "VBO")
          CheckBoxGadget(#OpenGLVsync, 338, 38, 50, 20, "VSync")
          CheckBoxGadget(#OpenGLDrawRange, 338, 68, 80, 20, "Draw Range")
          CheckBoxGadget(#OpenGLMultitextures, 338, 98, 90, 20, "MultiTexturing")
          CheckBoxGadget(#OpenGLS3tc, 438, 8, 50, 20, "S3TC")
          CheckBoxGadget(#OpenGLFbo, 438, 38, 40, 20, "FBO")
          CheckBoxGadget(#OpenGLGlsl, 438, 68, 50, 20, "GLSL")
          TextGadget(#OpenGLSupportExtText, 268, 8, 60, 20, "Extensions : ")
          CheckBoxGadget(#OpenGLAatextures, 338, 128, 80, 20, "AA Textures")
          AddGadgetItem(#OptionsPanel, -1, "Engine")
          CloseGadgetList()
          AddGadgetItem(#MainPanel, -1, "Applications")
          CloseGadgetList()
          
        EndIf
      EndIf
EndProcedure

